package com.lagou.edu.utils;

/**
 * 字符串处理工具类
 *
 * @author benwen
 */
public class StringUtils {

    /**
     * 首字母转小写
     *
     * @param source 源字符串
     * @return 转换后的字符串
     */
    public static String toLowerCaseFirstOne(String source) {
        if (Character.isLowerCase(source.charAt(0)))
            return source;
        else
            return (new StringBuilder()).append(Character.toLowerCase(source.charAt(0))).append(source.substring(1)).toString();
    }
}
